#!/bin/bash

#. "$HOME/.bashrc"

filename="${COMMUNIS_PATH}/Deploy_store/.qa/main_repo_fn/dir_f_f_/f_f_extst/dir_1/start_check_extst.tst"

# echo -e "${HLIGHT}---start file://$filename with args: $@ ---${NORMAL}" # start file

# idir=$(pwd)
# rdir="$(prs_f -d $filename)"
# gname="$(prs_f -n $filename)" # name without .ext
# cd "$(prs_f -d $filename)" || qq_exit "$(prs_f -d $filename) not found"

# export _edeb=echo_$gname
# export echo_$gname=0

# export _debug=debug_$gname
# export debug_$gname=0

# garg_ $gname $@ 1>/dev/null

# echo_deb_ ${!_edeb} "cntl echo_deb_ mode in $gname"
# if [ -n ${!_debug} ] && [ ${!_debug} -eq 1 ]; then
#     echo "DEBUG MODE in $gname"
# fi

# idir=$(pwd)
rdir="$(prs_f -d $filename)"
# gname="$(prs_f -n $filename)" # name without .ext
# cd "$(prs_f -d $filename)" || qq_exit "$(prs_f -d $filename) not found"
# #
# export _edeb=echo_$gname
# export echo_$gname=0
# #
# export _debug=debug_$gname
# export debug_$gname=0
# #
# garg_ $gname $@ 1>/dev/null
#
# echo_deb_ ${!_edeb} "cntl echo_deb_ mode in $gname"
# if [ -n ${!_debug} ] && [ ${!_debug} -eq 1 ]; then
#     echo "DEBUG MODE in $gname"
# fi
# #{header}

#----------------------------------------------------------------------
#-------------------------------------
#-------------------------------
up_err_ extst ${COMMUNIS_PATH}/Deploy_store/.qa/main_repo_fn/dir_f_f_/f_f_extst/dir_1/check_extst.list 1>/dev/null
errno=$?
if [ 1 -eq "${errno}" ]; then
    echo "ANY in $rdir fail" >&2
else
    echo "ALL in $rdir true"
fi
#{body}
#-------------------------------
#-------------------------------------
#----------------------------------------------------------------------

cd "$idir"

unset filename
